package com.bilibili.movies.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bilibili.movies.entity.User;
import com.bilibili.movies.mapper.UserMapper;
import com.bilibili.movies.service.Interface.UserInterface;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, User> implements UserInterface {
    @Override
    public boolean JudgeEmilCode(User user, HttpServletRequest request) {

       return user.getCode().equals(request.getSession().getAttribute(user.getEmail()));

    }
}
